package 字节码文件.操作数栈管理指令;

import com.sun.org.apache.bcel.internal.generic.NEW;

/**
 * <P> @Author: ideaAdmin
 * <P> TODO: Class
 * <P> TODO: 操作数栈管理指令
 * <P> Date: 2022/3/27:15:58
 * <P> Description:
 */

public class StackOperateTest {

    public void print(){
        Object obj = new Object();
       // String info = obj.toString();
        obj.toString();
        //2 pop
    }

    public void foo(){
        bar();
        //pop2 抛弃两个slot的元素
    }

    public long bar() {
        return 0;
    }

    public long nextIndex(){
        return  index++;
        //5 dup2_x1 复制一份 并把这一份放在2+1的slot长度的下面
    }
    public long index;
}
